package asava.trees;

import asava.names.Name;

/**
 * @author Tim Richter
 */
public final class Labeled extends Tree {
    public Name name;
    public Tree body;

    public Labeled(final Name name,
                   final Tree body) {
        this.name = name;
        this.body = body;
    }

    @Override
    public int kind() {
        return TreeKind.LABELED;
    }

    @Override
    public void accept(final TreeVisitor visitor) {
        visitor.visit(this);
    }
}
